package com.schoolcloud.social.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.social.entity.SocPostFile;
import com.schoolcloud.social.mapper.SocPostFileMapper;
import com.schoolcloud.social.service.SocPostFileService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【soc_post_file(帖子表的图片表)】的数据库操作Service实现
* @createDate 2025-02-11 13:13:12
*/
@Service
public class SocPostFileServiceImpl extends ServiceImpl<SocPostFileMapper, SocPostFile>
    implements SocPostFileService{

    @Override
    public List<SocPostFile> getListByPostId(Integer postId) {
        return lambdaQuery().eq(SocPostFile::getPostId, postId).list();
    }
}




